package pl.edu.agh.neurony.logic.activationFunctions;

public class LinearFunc implements ActivationFunc {

	
	private double a=1;
	private double b=0;
	
	@Override
	public double run(double input) {
		return a*input+b;
	}
	
	@Override
	public double derivative(double input) {
		return a;
	}
	
	@Override
	public String getName() {
		return "linear";
	}
	
	@Override
	public String toString() {
		return getName();
	}
}
